.dry_scaffold
  .dry_scaffold_header
    %h2 projects
    .actions
      .create= link_to 'New project', :action => 'new' 
  %table
    %thead
      %tr
        - for column in Project.content_columns 
          %th
            = column.human_name 
    %tbody
      - for project in @projects
        .row
          %tr{ :class => cycle('','even')}
            - for column in Project.content_columns
              %td
                =h project.send(column.name)
            %td
              .actions
                = link_to 'Show', :action => 'show', :id => project 
                \|
                = link_to 'Edit', :action => 'edit', :id => project
                \|
                = link_to 'Destroy', { :action => 'destroy', :id => project }, :confirm => 'Are you sure?', :method => :post
  
  = link_to 'Previous page', { :page => @project_pages.current.previous } if @project_pages.current.previous 
  = link_to 'Next page', { :page => @project_pages.current.next } if @project_pages.current.next  
  
  %br/


